package com.wind.trademark.user.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * AccUserRole entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "acc_user_role", catalog = "mypro")
public class AccUserRole implements java.io.Serializable {

	// Fields

	private Long id;
	private Long roleId;
	private Long userId;

	// Constructors

	/** default constructor */
	public AccUserRole() {
	}

	/** full constructor */
	public AccUserRole(Long id, Long roleId, Long userId) {
		this.id = id;
		this.roleId = roleId;
		this.userId = userId;
	}

	@Id
	@GeneratedValue(generator = "generator")    
	@GenericGenerator(name = "generator", strategy = "increment") 
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "ROLE_ID", nullable = false)
	public Long getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	@Column(name = "USER_ID", nullable = false)
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

}